﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="DiemRenLuyenTheoThang.aspx.cs" Inherits="WTSQCB.DiemRenLuyenTheoThang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp; Nhập điểm rèn luyện theo tháng</p>
    <p>
        <asp:GridView ID="DiemrenLuyendgv" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="MaHocVien,Thang,Nam" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="DiemrenLuyendgv_SelectedIndexChanged" Width="980px">
            <Columns>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="CHỌN" />
                <asp:BoundField DataField="MaHocVien" HeaderText="Mã học viên" ReadOnly="True" SortExpression="MaHocVien" />
                <asp:BoundField DataField="HoTen" HeaderText="Họ tên" SortExpression="HoTen" />
                <asp:BoundField DataField="Thang" HeaderText="Tháng" ReadOnly="True" SortExpression="Thang" />
                <asp:BoundField DataField="Nam" HeaderText="Năm" ReadOnly="True" SortExpression="Nam" />
                <asp:BoundField DataField="Diem" HeaderText="Điểm" SortExpression="Diem" />
                <asp:BoundField DataField="XepLoai" HeaderText="Xếp loại" SortExpression="XepLoai" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </p>
&nbsp;<asp:Button ID="Thembtn" runat="server" OnClick="Thembtn_Click" Text="THÊM" Width="80px" />
    &nbsp;
    <asp:Button ID="Suabtn" runat="server" OnClick="Suabtn_Click" Text="SỬA" Width="80px" />
    &nbsp;
    <asp:Button ID="Xoabtn" runat="server" OnClick="Xoabtn_Click" OnClientClick="return confirm('Bạn có muốn XÓA ?')" Text="XÓA" Width="80px" />
    <br />
    <br />
    &nbsp;Thông tin chi tiết:<br />
    <br />
    &nbsp;Mã học viên:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="MaHocVientxt" runat="server"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="MaHocVientxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    <br />
    <br />
    &nbsp;Tháng:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="Thangtxt" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Thangtxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
&nbsp;<asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="Thangtxt" ErrorMessage="RangeValidator" ForeColor="Red" MaximumValue="12" MinimumValue="1" Type="Integer">Tháng từ 1 - 12</asp:RangeValidator>
    <br />
    <br />
    &nbsp;Năm:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="Namtxt" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Namtxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
&nbsp;<asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="Namtxt" ErrorMessage="RangeValidator" ForeColor="Red" MaximumValue="2030" MinimumValue="1990" Type="Integer">Số nguyên</asp:RangeValidator>
    <br />
    <br />
    &nbsp;Điểm:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="Diemtxt" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Diemtxt" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
&nbsp;<asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="Diemtxt" ErrorMessage="RangeValidator" ForeColor="Red" MaximumValue="30" MinimumValue="0" Type="Double">Điểm từ 0 -30</asp:RangeValidator>
    <br />
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebDiemTSQCBConnectionString %>" SelectCommand="RenLuyenLoad" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    <br />
</asp:Content>
